﻿<%@ Page AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" Language="C#" MasterPageFile="~/MasterPages/default.master" Title="Quản lý Sản Phẩm Lỏng" %>

<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dxrp" %>

<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dxpc" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.1.Export, Version=9.1.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"  Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.1, Version=9.1.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dxw" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dxp" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.1, Version=9.1.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dxp" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dxtc" %>


<asp:Content ID="Content2" runat="Server" ContentPlaceHolderID="ContentPlaceHolder2">
  <script type="text/javascript">
    function OnViewReportClick(element, keyValue) {
      pcDailyReport.ShowAtElement(element);
      gvGPP.GetValuesOnCustomCallback(keyValue, onGetValues);
    }
    
    function onGetValues(values) {
      rId.SetValue(values[0]);
    }
  </script>  
  <table style="width: 608px">
    <tr>
      <td colspan="4">&nbsp;</td>
    </tr>
    <tr align="center">
      <td valign="top">Từ:</td>
      <td><dxe:ASPxDateEdit ID="deFrom" runat="server" AutoPostBack="True" EditFormat="Custom" EditFormatString="dd/MM/yyyy"></dxe:ASPxDateEdit></td>
      <td valign="top">Đến:</td>
      <td><dxe:ASPxDateEdit ID="deTo" runat="server" AutoPostBack="True" EditFormat="Custom" EditFormatString="dd/MM/yyyy"></dxe:ASPxDateEdit></td>
    </tr>
    <tr>
      <td colspan="4">&nbsp;</td>
    </tr>
  </table>
</asp:Content>  

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
  <dxwgv:ASPxGridView ID="gvBatch" runat="server" AutoGenerateColumns="False" DataSourceID="BatchDataSource1" KeyFieldName="Id">
    <Templates>
      <DetailRow>
        <dxwgv:ASPxGridView ID="gvDetailBatchGPP" runat="server" AutoGenerateColumns="False" KeyFieldName="Id" OnLoad="ASPxGridView4_Load">
          <Columns>
            <dxwgv:GridViewCommandColumn ButtonType="Image" Caption="Chức&amp;nbsp;năng" VisibleIndex="0">
              <UpdateButton>
                <Image Url="~/Images/accept.png" />
              </UpdateButton>
              <CancelButton>
                <Image Url="~/Images/cancel.png" />
              </CancelButton>
              <NewButton Visible="True">
                <Image Url="~/Images/add.png" />
              </NewButton>
              <EditButton Visible="True">
                <Image Url="~/Images/edit.png" />
              </EditButton>
            </dxwgv:GridViewCommandColumn>
            <dxwgv:GridViewDataTextColumn FieldName="Id" ReadOnly="True" Visible="False" VisibleIndex="0">
              <EditFormSettings Visible="False" />
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="BatchId" Visible="False" VisibleIndex="2">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataDateColumn Caption="Ng&#224;y&amp;nbsp;giờ" FieldName="InputTime" VisibleIndex="1">
            </dxwgv:GridViewDataDateColumn>
            <dxwgv:GridViewDataCheckColumn Caption="Start/Stop" FieldName="IsStop" VisibleIndex="2">
            </dxwgv:GridViewDataCheckColumn>
            <dxwgv:GridViewDataTextColumn Caption="Số&amp;nbsp;Meter&amp;nbsp;I" FieldName="Me1" VisibleIndex="3">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Số&amp;nbsp;Meter&amp;nbsp;II" FieldName="Me2" VisibleIndex="4">
            </dxwgv:GridViewDataTextColumn>
          </Columns>
        </dxwgv:ASPxGridView>
        <dxwgv:ASPxGridView ID="gvDetailBatchTVT" runat="server" AutoGenerateColumns="False" KeyFieldName="Id" OnLoad="ASPxGridView5_Load">
          <Columns>
            <dxwgv:GridViewCommandColumn ButtonType="Image" Caption="Chức&amp;nbsp;năng" VisibleIndex="0">
              <UpdateButton>
                <Image Url="~/Images/accept.png" />
              </UpdateButton>
              <CancelButton>
                <Image Url="~/Images/cancel.png" />
              </CancelButton>
              <NewButton Visible="True">
                <Image Url="~/Images/add.png" />
              </NewButton>
              <EditButton Visible="True">
                <Image Url="~/Images/edit.png" />
              </EditButton>
            </dxwgv:GridViewCommandColumn>
            <dxwgv:GridViewDataTextColumn FieldName="Id" ReadOnly="True" Visible="False" VisibleIndex="0">
              <EditFormSettings Visible="False" />
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="BatchId" Visible="False" VisibleIndex="2">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataDateColumn Caption="Ng&#224;y&amp;nbsp;giờ" FieldName="InputTime" VisibleIndex="1">
            </dxwgv:GridViewDataDateColumn>
            <dxwgv:GridViewDataCheckColumn Caption="Start/Stop" FieldName="IsStop" VisibleIndex="2">
            </dxwgv:GridViewDataCheckColumn>
            <dxwgv:GridViewDataTextColumn Caption="Số&amp;nbsp;Meter&amp;nbsp;I" FieldName="Me1" VisibleIndex="3">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Số&amp;nbsp;Meter&amp;nbsp;II" FieldName="Me2" VisibleIndex="4">
            </dxwgv:GridViewDataTextColumn>
          </Columns>
        </dxwgv:ASPxGridView>
      </DetailRow>
    </Templates>
    <Columns>
      <dxwgv:GridViewCommandColumn VisibleIndex="0" ButtonType="Image" Caption="Chức&amp;nbsp;năng">
        <NewButton Visible="True">
          <Image Url="~/Images/add.png" />
        </NewButton>
        <UpdateButton>
          <Image Url="~/Images/accept.png" />
        </UpdateButton>
        <CancelButton>
          <Image Url="~/Images/cancel.png" />
        </CancelButton>
        <EditButton Visible="True">
          <Image Url="~/Images/edit.png" />
        </EditButton>
      </dxwgv:GridViewCommandColumn>
      <dxwgv:GridViewDataTextColumn FieldName="Id" ReadOnly="True" VisibleIndex="1" Visible="False">
      </dxwgv:GridViewDataTextColumn>
      <dxwgv:GridViewDataTextColumn FieldName="BatchNo" VisibleIndex="1" Caption="Batch No.">
      </dxwgv:GridViewDataTextColumn>
      <dxwgv:GridViewDataTextColumn FieldName="Type" VisibleIndex="2" Caption="Loại">
      </dxwgv:GridViewDataTextColumn>
    </Columns>
    <SettingsDetail IsDetailGrid="True" ShowDetailRow="True" />
  </dxwgv:ASPxGridView>
  <data:BatchDataSource ID="BatchDataSource1" runat="server">
  </data:BatchDataSource>
  <data:DetailBatchGppDataSource ID="DetailBatchGppDataSource1" runat="server">
  </data:DetailBatchGppDataSource>
  <data:DetailBatchTvtDataSource ID="DetailBatchTvtDataSource1" runat="server">
  </data:DetailBatchTvtDataSource>
  <dxwgv:ASPxGridView ID="gvHoaDonXuat" runat="server" AutoGenerateColumns="False" DataSourceID="PhieuXuatDataSource1" KeyFieldName="Id">
    <Columns>
      <dxwgv:GridViewCommandColumn VisibleIndex="0" ButtonType="Image" Caption="Chức&amp;nbsp;năng">
        <NewButton Visible="True">
          <Image Url="~/Images/add.png" />
        </NewButton>
        <UpdateButton>
          <Image Url="~/Images/accept.png" />
        </UpdateButton>
        <CancelButton>
          <Image Url="~/Images/cancel.png" />
        </CancelButton>
        <EditButton Visible="True">
          <Image Url="~/Images/edit.png" />
        </EditButton>
      </dxwgv:GridViewCommandColumn>
      <dxwgv:GridViewDataTextColumn FieldName="Id" ReadOnly="True" VisibleIndex="1" Visible="False">
      </dxwgv:GridViewDataTextColumn>
      <dxwgv:GridViewDataDateColumn FieldName="InputTime" VisibleIndex="1" Caption="Ng&#224;y&amp;nbsp;xuất">
      </dxwgv:GridViewDataDateColumn>
      <dxwgv:GridViewDataTextColumn FieldName="Quantity" VisibleIndex="2" Caption="Số&amp;nbsp;lượng">
      </dxwgv:GridViewDataTextColumn>
      <dxwgv:GridViewDataTextColumn FieldName="Type" VisibleIndex="3" Caption="Loại">
      </dxwgv:GridViewDataTextColumn>
    </Columns>
  </dxwgv:ASPxGridView>
  &nbsp;
  <data:PhieuXuatDataSource ID="PhieuXuatDataSource1" runat="server">
  </data:PhieuXuatDataSource>
  <dxwgv:ASPxGridView ID="gvHoaDonNhap" runat="server" AutoGenerateColumns="False" DataSourceID="PhieuNhapDataSource1" KeyFieldName="Id">
    <Columns>
      <dxwgv:GridViewCommandColumn ButtonType="Image" Caption="Chức&amp;nbsp;năng" VisibleIndex="0">
        <UpdateButton>
          <Image Url="~/Images/accept.png" />
        </UpdateButton>
        <CancelButton>
          <Image Url="~/Images/cancel.png" />
        </CancelButton>
        <NewButton Visible="True">
          <Image Url="~/Images/add.png" />
        </NewButton>
        <EditButton Visible="True">
          <Image Url="~/Images/edit.png" />
        </EditButton>
      </dxwgv:GridViewCommandColumn>
      <dxwgv:GridViewDataTextColumn FieldName="Id" ReadOnly="True" Visible="False" VisibleIndex="1">
        <EditFormSettings Visible="False" />
      </dxwgv:GridViewDataTextColumn>
      <dxwgv:GridViewDataDateColumn Caption="Ng&#224;y&amp;nbsp;nhập" FieldName="InputTime" VisibleIndex="1">
      </dxwgv:GridViewDataDateColumn>
      <dxwgv:GridViewDataTextColumn Caption="Số&amp;nbsp;lượng" FieldName="Quantity" VisibleIndex="2">
      </dxwgv:GridViewDataTextColumn>
      <dxwgv:GridViewDataTextColumn Caption="Loại" FieldName="Type" VisibleIndex="3">
      </dxwgv:GridViewDataTextColumn>
    </Columns>
  </dxwgv:ASPxGridView>
  <data:PhieuNhapDataSource ID="PhieuNhapDataSource1" runat="server">
  </data:PhieuNhapDataSource>

</asp:Content>
